<div class="container">
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3">
            <h2>Panel Rejestracji</h2>

            <?php $form = $this->beginWidget('CActiveForm', array('id' => 'register-client-form')); ?>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'firstname'); ?>
                <?php echo $form->textField($modelRegister, 'firstname', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'firstname') ?>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'lastname'); ?>
                <?php echo $form->textField($modelRegister, 'lastname', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'lastname') ?>
            </div>
            <div class="row" style="margin-left: -15px;">
                <div class="form-group col-sm-8">
                    <?php echo $form->labelEx($modelRegister, 'street'); ?>
                    <?php echo $form->textField($modelRegister, 'street', array('class' => 'form-control')) ?>
                    <?php echo $form->error($modelRegister, 'street') ?>
                </div>
                <div class="form-group col-sm-4">
                    <?php echo $form->labelEx($modelRegister, 'street_no'); ?>
                    <?php echo $form->textField($modelRegister, 'street_no', array('class' => 'form-control')) ?>
                    <?php echo $form->error($modelRegister, 'streete_no') ?>
                </div>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'city'); ?>
                <?php echo $form->textField($modelRegister, 'city', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'city') ?>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'pesel'); ?>
                <?php echo $form->textField($modelRegister, 'pesel', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'pesel') ?>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'birthday'); ?>
                <?php echo $form->textField($modelRegister, 'birthday', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'birthday') ?>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'phone'); ?>
                <?php echo $form->textField($modelRegister, 'phone', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'phone') ?>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($modelRegister, 'email'); ?>
                <?php echo $form->textField($modelRegister, 'email', array('class' => 'form-control')) ?>
                <?php echo $form->error($modelRegister, 'email') ?>
            </div>
            <?php echo CHtml::submitButton('Utwórz profil', array('class' => 'btn btn-danger')); ?>
            <?php $this->endWidget(); ?>
        </div>
    </div>
</div>

